<?php

$unikumPage = array('index');

//$moduleName = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();
$controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();

echo $this->render('header.phtml');
echo $this->render('slidebar.phtml');
if(!$this->noAuth){
    echo '<div id="info-bar">';
    echo $this->render('info-bar.phtml');
    echo '</div>';
}
if (!empty ($controllerName) && Zend_Loader::isReadable('../application/modules/admin/layouts/scripts/filters/'.$controllerName.'-filter.phtml')) {
    if(!$this->noAuth) echo $this->render('filters/'.$controllerName.'-filter.phtml');
}
echo '<div id="pageContent">';
    echo $this->layout()->content;
echo "</div>";

echo $this->render('footer.phtml');
?>